<template>
  <div id="centerLeft">
    <div class="left-content01">
      <div class="content01-hander row1-title">
        信件统计
        <button
          @click="showChart('gender')"
          :class="{ active: activeChart === 'gender' }"
        >
          案件性质
        </button>
        <button
          @click="showChart('age')"
          :class="{ active: activeChart === 'age' }"
        >
          回复方式
        </button>
      </div>
      <div class="content-item">
        <GenderAgeEcharts :activeChart="activeChart"></GenderAgeEcharts>
      </div>
    </div>
  </div>
</template>

<script>
  import GenderAgeEcharts from "./GenderAgeEcharts.vue";

  export default {
    data() {
      return {
        activeChart: "age",
        detail: false,
      };
    },
    components: {
      GenderAgeEcharts,
    },
    mounted() {},
    methods: {
      showChart(chartType) {
        this.activeChart = chartType;
      },
    },
  };
</script>

<style lang="scss" scoped>
  $box-width: 535px;
  $box-height: 305px;

  #centerLeft {
    position: relative;
    height: $box-height;
    width: $box-width;

    .left-content01 {
      width: 100%;
      height: 100%;
      background-image: url("/public/imgs/Rightbbbbb.png");
      background-repeat: no-repeat;
      background-size: 100% 100%;
    }

    .content01-hander {
      background: linear-gradient(to bottom, #ffffff, #97cdff);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      color: transparent;
      height: 58px;
      font-family: Adobe Heiti Std;
      font-weight: 600;
      font-size: 20px;
      color: #ffffff;
      display: flex;
      align-items: center;
      color: #fff;
      padding-left: 60px;
      line-height: 56px;
      button {
        width: 80px;
        height: 20px;
        color: #d8f0ff;
        text-align: center;
        text-shadow: 0px 0px 4px #0091ff, 0px 0px 10px #0091ff;
        font-family: "PingFang SC";
        font-size: 12px;
        font-style: normal;
        font-weight: 400;
        line-height: 16px;
        border-radius: 3px;
        margin-left: 15px;
        cursor: pointer;
        border: 1px solid rgba(30, 123, 214, 0.22);
        background: linear-gradient(
          180deg,
          rgba(15, 74, 159, 0) 0%,
          rgba(17, 75, 160, 0.95) 137.5%
        );

        &.active {
          /* background-image: url("../../../public/imgs/choosebutton.png"); */
          border: 1px solid rgba(30, 123, 214, 1) !important;
          background-repeat: no-repeat;
          background-size: 100% 100%;
        }
      }
    }
    .content-item {
      // margin-top: 20px;
      display: flex;
      justify-content: space-between;
    }

    .content-itemleft-box {
      margin-top: 30px;
    }

    .content-itemleft-title {
      color: #fff;
      font-size: 20px;
      margin-bottom: 10px;
    }

    .item-left-box > .item-left-text:last-child {
      margin-bottom: 0;
    }

    .content-itemleft-text {
      color: #fff;
      font-size: 20px;
      font-weight: 700;
      margin-bottom: 30px;
    }
  }
</style>
